package com.fowo.api.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fowo.api.sys.entity.SysPost;
import com.fowo.api.sys.model.SysPostSearchParamPo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysPostMapper extends BaseMapper<SysPost> {
    Page<SysPost> pageSearch(@Param("page") Page page, SysPostSearchParamPo search);
    List<SysPost> search(@Param("search") SysPostSearchParamPo search);
    Long getIdByName(@Param("name") String name);
}
